import Vue from 'vue'
import axios from 'axios'

import  VueJsonp  from  'vue-jsonp'


import App from './App'
import router from './router'
import store from './store'

import { 
  Row,
  Col,
      Input,
  InputNumber,
  Menu,
  Submenu,
  MenuItem,
  MenuItemGroup,} from 'element-ui'

Vue.use(Row)
Vue.use(Col)
Vue.use(Input)
Vue.use(InputNumber)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(MenuItemGroup)

import { Photoshop } from 'vue-color' //引入颜色拾取器
Vue.use(Photoshop)

//elementui css
import 'element-ui/lib/theme-chalk/index.css'



Vue.use(VueJsonp)

if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
Vue.http = Vue.prototype.$http = axios

Vue.config.productionTip = false



/* eslint-disable no-new */
new Vue({
  components: { App },
  router,
  store,
  template: '<App/>'
}).$mount('#app')
